﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ACLJ_2.aspx.cs" Inherits="ACLJ_ACLJ_2" %>

<%@ Register src="../DispoConfirm.ascx" tagname="DispoConfirm" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body style="padding: 0px; margin: 0px;">
    <form id="form1" runat="server">

    <asp:ScriptManager EnablePartialRendering="true" ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <table cellpadding="0" cellspacing="0" style="border: 10px solid red">
    <tr valign="top">
    <td width="200px">
    <div style="background-color: #C0C0C0">
        <asp:UpdatePanel ID="upDiv1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>

            <center><h4>Non Donations:</h4></center>
              <uc1:DispoConfirm ID="DispoConfirm1" runat="server" />
            <hr />
            <center><h4>Donations:</h4></center>

            <asp:Table ID="Table1" runat="server" Height="114px" Width="95%">
                <asp:TableRow ID="TableRow1" runat="server">
                    <asp:TableCell ID="TableCell1" runat="server">Type:</asp:TableCell>
                </asp:TableRow>
                <asp:TableRow ID="TableRow3" runat="server">
                    <asp:TableCell ID="TableCell6" runat="server">
                        <asp:DropDownList ID="ddDonationType" runat="server" width="60%" ValidationGroup="Donation">
                            <asp:ListItem Value="1">Credit Card</asp:ListItem>
                            <asp:ListItem Value="2">Promise Cash</asp:ListItem>
                        </asp:DropDownList>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow ID="TableRow4" runat="server">
                    <asp:TableCell ID="TableCell2" runat="server">Amount:</asp:TableCell>
                    </asp:TableRow>
                <asp:TableRow ID="TableRow2" runat="server">
                    <asp:TableCell ID="TableCell4" runat="server"><asp:TextBox ID="txtDonationAmt" runat="server" ValidationGroup="Donation" width="50%"></asp:TextBox></asp:TableCell>
                </asp:TableRow>
            </asp:Table>

           <asp:RequiredFieldValidator ID="Req1" runat="server" 
                ControlToValidate="txtDonationAmt" validationgroup="Donation" 
                      ErrorMessage="* Donation Amount Required" Font-Size="X-Small"></asp:RequiredFieldValidator>
           <asp:RegularExpressionValidator ID="Req2" runat="server" 
                ControlToValidate="txtDonationAmt" validationgroup="Donation" ErrorMessage="* Donation Amount required format (999.99)" 
                ValidationExpression="(?!^0*$)(?!^0*\.0*$)^\d{1,5}(\.\d{1,2})?$" 
                      Font-Size="X-Small" ></asp:RegularExpressionValidator>

            <asp:Button ID="btnSaveDonation" runat="server" onclick="btnSaveDonation_Click" 
                Text="Disposition as Donation" Width="90%" ValidationGroup="Donation"/>
            <asp:Label ID="lblErrorMsg" runat="server" ForeColor="Red" Visible="False"></asp:Label>

        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </td>

    <td style="border: 10px solid black">
        <div style="padding: 0; overflow: hidden; border: 10px solid red">
            <iframe id="MyIFrame" runat="server" scrolling="auto" frameborder="0" height="100%"></iframe>
        </div>
    </td>
    </tr>
    </table>

    </form>
</body>
</html>
